package top.shaozuo.simple.configuration.microprofile.config.converts;

import org.eclipse.microprofile.config.spi.Converter;

public class FloatConverter implements Converter<Float> {

    public static final FloatConverter INSTANCE = new FloatConverter();

    @Override
    public Float convert(String value) {
        return value != null ? Float.valueOf(value) : null;
    }
}